package com.ddsfec.homepageapi.controller;


import com.ddsfec.homepageapi.entity.ResultBean;
import com.ddsfec.homepageapi.service.EvaluateService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 评论
 */
@RequestMapping("/evaluate")
@RestController
public class EvaluateController {
    @Resource
    EvaluateService evaluateService;

    @RequestMapping("/listByUser")
    public ResultBean checkEvaluatesByUser(@RequestParam(value = "userId" ,required = true)String userId){
        return evaluateService.checkEvaluatesByUser(userId);
    }


}
